package com.kfm.mapper;

import com.kfm.entity.File;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FileMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(File record);

    int insertSelective(File record);

    File selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(File record);

    int updateByPrimaryKey(File record);

    List<File> selectByUserId(Integer userId);

    List<File> selectByDirectoryId(Integer directoryId);

    File selectByMD5AndDirectoryId(String md5, Integer directoryId);
}